package cn.tedu.jxc.controller;

import cn.tedu.jxc.mapper.PurchaseMapper;
import cn.tedu.jxc.pojo.vo.PurchaseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/purchase")
public class PurchaseController {

    @Autowired(required = false)
    PurchaseMapper mapper;
    @RequestMapping("/select")
    public List<PurchaseVO> select(){
        return mapper.select();
    }
}
